package com.gong.DesignPattern.StatePattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/7/5 0005 9:07
 */
public class StartState implements State {
    @Override
    public void doAction(Context context) {
        System.out.println("is start");
        context.setState(this);
    }

    @Override
    public String toString() {
        return "start state";
    }
}
